package com.ljf.order.exception;


import com.ljf.order.enums.ResultEnum;

/**
 * @Author: Ljf
 * @Date : 2019/2/1 0:03
 * @Description :
 */
public class SellException extends RuntimeException{
    private Integer code;


    public SellException(ResultEnum resultEnum) {
        this.code = resultEnum.getCode();
    }

    public SellException(ResultEnum resultEnum,String message) {
        super(message);
        this.code = resultEnum.getCode();
    }
}
